package com.hoas.quickstart.threads.chapter02.chapter02_2_16_02;

public class Run {

    public static void main(String[] args) {


        Service service = new Service();
        UserInfo userInfo = new UserInfo();

        ThreadA threadA = new ThreadA( service, userInfo );
        threadA.setName("A");

        ThreadB threadB = new ThreadB( service, userInfo );
        threadB.setName("B");

        threadA.start();

        try {
            Thread.sleep(50);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        threadB.start();

    }

}
